package com.pan.design.pattern.behavioral.command;

/**
 * @author by panstark
 * @description
 * @notice
 * @date 2020/12/8
 */
public class StartCourseVideoCommand implements Command {

    private CourseVideo courseVideo;

    public StartCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.start();
    }
}
